package com.dandelion.manager.system.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.dandelion.commons.domain.BaseDomain;

public class Role extends BaseDomain implements Serializable {
	private static final long serialVersionUID = 1L;

	private Long id;

    private String name;
    
    private String identity ;

    private Integer sorting;

    private Date createTime;

    private Date updateTime;

    private String description;
    
    private List<RoleResource> roleResource ;
    
    private List<Resource> resources;
    

	public String getIdentity() {
		return identity;
	}

	public void setIdentity(String identity) {
		this.identity = identity;
	}

	public List<RoleResource> getRoleResource() {
		return roleResource;
	}

	public void setRoleResource(List<RoleResource> roleResource) {
		this.roleResource = roleResource;
	}

	public List<Resource> getResources() {
		return resources;
	}

	public void setResources(List<Resource> resources) {
		this.resources = resources;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getSorting() {
        return sorting;
    }

    public void setSorting(Integer sorting) {
        this.sorting = sorting;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }
}